<% layout('layout') %>
<% block('head').append('<link type="text/css" href="/stylesheets/style.css">') %>
<div ng-controller="CenterCtrl">

    <div data-am-widget="tabs" class="am-tabs am-tabs-d2 am-margin-0">
        <ul class="am-tabs-nav am-cf" data-am-sticky>
            <li class=""><a href="/user/history/0" >全部</a></li>
            <li class=""><a href="/user/history/1" >待付款</a></li>
            <li class="am-active"><a href="" >待收货</a></li>
            <li class=""><a href="/user/history/4" >待评价</a></li>
        </ul>
        <div class="am-tabs-bd" >
            <div data-tab-panel-0 class="am-tab-panel am-active">
                <div class="am-list" >
                    <%
                    if(listtype && listtype.length > 0){
                            listtype.forEach(function(orderone){
                    %>
                    <div class="am-list-item am-margin-vertical-sm  scor-border-bottom">
                        <p class="scor-font-size-15 scor-color-555 am-margin-0">
                            <span class="am-margin-left-sm">  订单编号 </span>
                            <span class="am-text-warning "><%= orderone.orderid%></span>
                        </p>
                        <p class="scor-font-size-12 scor-color-555 am-margin-0">
                            <span class="am-margin-left-sm">  付款时间 </span>
                            <span class="am-text-warning "><%= orderone.paytimestr %></span>
                        </p>
                        <p class="scor-font-size-12 scor-color-555 am-margin-0">
                            <span class="am-margin-left-sm">  订单状态 </span>
                            <span class="am-text-warning "><%= orderone.status%></span>
                        </p>

                        <% orderone.goods.forEach(function(good){ %>
                        <div class="am-g">
                            <div class="am-u-sm-2">
                                <img src="<%=good.img%>" class="scor-img-45">
                            </div>
                            <div class="am-u-sm-7">
                                <div class="am-text-warning scor-font-size-16"><%=good.pname + good.sname%></div>
                                <div class="scor-color-555 scor-font-size-14">数量:<span class="scor-color-888"><%=good.size%></span></div>
                            </div>
                            <div class="am-u-sm-3">
                                <div class="am-text-warning scor-font-weight-700 scor-font-size-14">￥<%=good.price%></div>
                                <div>&nbsp;</div>
                            </div>
                        </div>
                        <% }) %>

                        <div class="am-g">
                            <div class="am-margin-left-sm ">
                                <span class="scor-color-888 scor-font-size-12 ">收货信息：&nbsp;</span>
                                <span class="scor-font-size-12 scor-font-weight-700"><%= orderone.address%></span>
                            </div>
                        </div>
                        <div class="am-g">
                            <div class="am-u-sm-6 am-margin-0 ">
                                <span class="scor-color-888 scor-font-size-12 ">支付方式：&nbsp;</span>
                                <span class="scor-font-size-12 scor-font-weight-700"><%= orderone.payway%></span>
                            </div>
                            <div class="am-u-sm-3 am-margin-0 ">
                                <span class="scor-color-888 scor-font-size-12 ">总计：&nbsp;</span>
                                <span class="scor-font-size-10 scor-color-red scor-font-weight-500"><%= orderone.finalAmount%></span>
                                <!-- <span class="scor-border  am-radius scor-font-size-15 scor-color-888 am-align-right am-margin-right-xs am-margin-top-xs am-padding-horizontal-sm" ng-click="getOrderInfo(orderone.orderid)">查&nbsp;看</span>-->
                            </div>
                            <div class="am-u-sm-3 am-margin-0 ">
                                <span class="scor-color-888 scor-font-size-12 ">积分:</span>
                                <span class="scor-font-size-10 scor-color-red scor-font-weight-500"><%= orderone.points%></span>
                            </div>
                        </div>
                    </div>
                    <%});}else{%>
                    <div>您暂时还没有订单.</div>
                    <%}%>
                </div>
            </div>
        </div>
    </div>


</div>


<% include ../navbar.ejs %>
<% block('footer').append('<script src="'+CDN+'script/center.js"></script>') %>
